package com.xuz.adapter.example02;

import com.xuz.adapter.example01.*;

/**
 * @user 65453
 * @date 2024/10/15 21:39
 */
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.read(sdCard));

        System.out.println("=====================");
        TFCard tfCard = new TFCardImpl();

        SDAdapterTF adapterTF = new SDAdapterTF(tfCard);
        System.out.println(computer.read(adapterTF));
    }
}
